package com.hundredapp.oa.domain;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

@Entity
@Table(name = "oa_slow", catalog = "oa_demo")
public class OaSlow implements java.io.Serializable {

	private Integer id;
	private OaStudent oastudents;
	private OaSubject oasubjects;
	private Integer slowlesson;
	private Integer addlesson;
	private Timestamp slowstart;
	private Timestamp slowend;
	private Timestamp addstart;
	private Timestamp addend;
	private Integer chargeback;
	private Integer createUserId;
	private Timestamp createTime;
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "student_id")
	public OaStudent getOastudents() {
		return oastudents;
	}
	public void setOastudents(OaStudent oastudents) {
		this.oastudents = oastudents;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "subject_id")
	public OaSubject getOasubjects() {
		return oasubjects;
	}
	public void setOasubjects(OaSubject oasubjects) {
		this.oasubjects = oasubjects;
	}
	@Column(name = "slowlesson")
	public Integer getSlowlesson() {
		return slowlesson;
	}
	public void setSlowlesson(Integer slowlesson) {
		this.slowlesson = slowlesson;
	}
	@Column(name = "addlesson")
	public Integer getAddlesson() {
		return addlesson;
	}
	public void setAddlesson(Integer addlesson) {
		this.addlesson = addlesson;
	}
	@Column(name = "slowstart", length = 19)
	public Timestamp getSlowstart() {
		return slowstart;
	}
	public void setSlowstart(Timestamp slowstart) {
		this.slowstart = slowstart;
	}
	@Column(name = "slowend", length = 19)
	public Timestamp getSlowend() {
		return slowend;
	}
	public void setSlowend(Timestamp slowend) {
		this.slowend = slowend;
	}
	@Column(name = "addstart", length = 19)
	public Timestamp getAddstart() {
		return addstart;
	}
	public void setAddstart(Timestamp addstart) {
		this.addstart = addstart;
	}
	@Column(name = "addend", length = 19)
	public Timestamp getAddend() {
		return addend;
	}
	public void setAddend(Timestamp addend) {
		this.addend = addend;
	}
	@Column(name = "create_user_id")
	public Integer getCreateUserId() {
		return createUserId;
	}
	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}
	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	@Column(name = "chargeback")
	public Integer getChargeback() {
		return chargeback;
	}
	public void setChargeback(Integer chargeback) {
		this.chargeback = chargeback;
	}
}
